{template "nheader.html"}
<div class="container-fluid larry-wrapper">

	<section class="panel panel-padding">
		<form class="layui-form" action="" method="post">
			<input type="hidden" value="search" name="form">
			<div class="layui-form">
				<div class="layui-inline">
					<select class="form-control" id="catid" name="catid">
						<option value="0"> -- </option>
						{$category}
					</select>
				</div>

				<div class="layui-inline">
					<div class="layui-input-inline">
						<input class="layui-input" name="kw" value="{$kw}">
					</div>
				</div>
				<div class="layui-inline">
					<button class="layui-btn"><i class="fa fa-search"></i> {dr_lang('搜索')}</button>
					<a href="{url('admin/content/add', array('catid'=>$catid,'modelid'=>$modelid))}" class="layui-btn layui-btn-danger"><i class="fa fa-plus"></i> {dr_lang('发布')}</a>
				</div>
			</div>
		</form>
	</section>

	<section class="panel panel-padding">

		<div class="layui-form">

			<div class="table-responsive mytable" >
				<div class="group-button">
					{loop $menu $n $u}
					<a href="{$u}" class="layui-btn layui-btn-small {if $mark_name==$n}layui-btn-normal{/if}" >
						{$n}
					</a>
					{/loop}
				</div>

				<form action="" method="post">
					<input name="form" id="list_form" type="hidden" value="order" />
					<table class="layui-table lay-even">
						<thead>
						<thead>
						<tr>
							<th width="20" align="left"><input name="deletec" id="deletec" type="checkbox" onClick="setC()" /></th>
							<th width="40" align="left">{lang('a-order')}</th>
							<th width="40" align="left">ID </th>
							<th align="left" id="t_title">{lang('a-con-26')}</th>
							<th width="80" align="left">{lang('a-con-30')}</th>
							<th width="150" align="left">{lang('a-con-31')}</th>
							<th align="left">{lang('a-option')}</th>
						</tr>
						</thead>
						<tbody>
						{loop $list $t}
						<tr>
							<td align="left"><input name="del_{$t['id']}_{$t['catid']}" type="checkbox" class="deletec" /></td>
							<td align="left"><input type="text" name="order_{$t['id']}" class="input-text" style="width:35px;height: 28px" value="{$t['listorder']}"></td>
							<td align="left">{$t['id']}</td>
							<td align="left">
								<div id="s_title" style="height:20px;overflow: hidden;">
									<a href="{$site_url}{$t['url']}" clz="1" target="_blank" title="{$t['title']}">{$t['title']}</a>
								</div>
							</td>
							<td align="left">{$t['username']}</td>
							<td align="left"><span style="{if date('Y-m-d', $t['updatetime']) == date('Y-m-d')}color:#F00{/if}">{date(TIME_FORMAT, $t['updatetime'])}</span></td>
							<td align="left">
								{if $a=='verify'}
								<?php $del = url('admin/content/delverify/',array('catid'=>$t['catid'],'id'=>$t['id']));?>
								<a class="btn btn-primary btn-xs" href="{url('admin/content/editverify',array('id'=>$t['id']))}">{lang('a-edit')}</a>
								<a class="btn btn-primary btn-xs" href="javascript:;" clz="1" onClick="if(confirm('{lang('a-confirm')}')){ window.location.href='{$del}'; }">{lang('a-del')}</a>
								{else}
								{loop $join $j}
								<a class="btn btn-primary btn-xs" href="{url('admin/form/list',array('cid'=>$t['id'], 'modelid'=>$j['modelid']))}">{$j['modelname']}</a>
								{/loop}
								<?php $del = url('admin/content/del/',array('catid'=>$t['catid'],'id'=>$t['id']));?>
								<a class="btn btn-success btn-xs" href="{url('admin/content/edit',array('id'=>$t['id']))}">{lang('a-edit')}</a>
								<a class="btn btn-info btn-xs" href="{url('admin/content/duplicate',array('id'=>$t['id']))}">{lang('a-duplicate')}</a>

								<a href="javascript:;" class="btn btn-danger btn-xs" clz="1" onClick="if(confirm('{lang('a-confirm')}')){ window.location.href='{$del}'; }">{lang('a-del')}</a>
								{/if}
							</td>
						</tr>
						{/loop}
					</table>

					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-order')}" name="submit_order" onClick="$('#list_form').val('order')" {if $a=='verify'}disabled{/if} />&nbsp;
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-del')}" name="submit_del" onClick="$('#list_form').val('del');return confirm_del();" />&nbsp;
					{if $_GET['m']=='verify'}
					<input type="submit" class="btn btn-success btn-sm" value="{lang('a-con-36')}" name="submit_status_1" onClick="$('#list_form').val('status_1')" />&nbsp;
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-con-37')}" name="submit_status_0" onClick="$('#list_form').val('status_0')" />&nbsp;
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-con-38')}" name="submit_status_2" onClick="$('#list_form').val('status_2')" />&nbsp;
					{else}
					{if $recycle}
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-con-36')}" name="submit_status_1" onClick="$('#list_form').val('status_1')" />&nbsp;
					{else}
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-con-39')}" name="submit_status_3" onClick="$('#list_form').val('status_3')" />&nbsp;
					{/if}
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('dr008')}" name="submit_status_5" onClick="$('#list_form').val('status_5')" />&nbsp;
					{lang('a-con-40')}
					<label><select name="movecatid" class="form-control">
						<option value="0"> -- </option>
						{$category}
					</select></label>
					<input  type="submit" class="btn btn-success btn-sm" value="{lang('a-con-41')}" name="submit_move" onClick="$('#list_form').val('move')" />&nbsp;
					{/if}

				</form>
			</div>
		</div>

		<div class="text-center" id="page">
			<div class="layui-box layui-laypage layui-laypage-default">
				{$pagelist}
			</div>
		</div>

	</section>

</div>


</body>
<script type="text/javascript" src="{ADMIN_THEME}js/layui/layui.js"></script>


</html>